<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .wrapper:nth-child(1){
            display: block;
            width: 100px;
            height: 100px;
            background-color: red;
        }
    </style>
</head>
<body>
    <div class="wrapper">
        <div class="box"><span></span><span></span></div>
    </div>
    <!-- 
        nth-child 前面如果是class选择器选择的是它本身
     -->
</body>
</html>